﻿namespace EyeSoft.Wpf.Facilities
{
	using System.ComponentModel;
	using System.Windows;

	public static class NotifyPropertyChangedExtensions
	{
		public static SyncExecution Sync(this INotifyPropertyChanged viewModel)
		{
			return new SyncExecution(Application.Current);
		}

		public static AsyncExecution Async(this INotifyPropertyChanged viewModel)
		{
			return new AsyncExecution(Application.Current);
		}
	}
}
